# Contributor: Umar Getagazov <umar@handlerug.me>
# Maintainer: Umar Getagazov <umar@handlerug.me>
pkgname=zfs-src
_modname=${pkgname%-src}
pkgver=2.1.12
pkgrel=0
pkgdesc="ZFS for Linux (sources, AKMS)"
url="https://zfsonlinux.org"
arch="noarch"
license="CDDL-1.0"
depends="akms"
options="!check"  # irrelevant for a -src package
source="https://github.com/openzfs/zfs/releases/download/zfs-$pkgver/zfs-$pkgver.tar.gz
	AKMBUILD
	"
builddir="$srcdir/$_modname-$pkgver"

package() {
	mkdir -p "$pkgdir"/usr/src
	cp -r "$builddir" "$pkgdir"/usr/src/zfs
	install -Dm644 "$srcdir"/AKMBUILD "$pkgdir"/usr/src/zfs/AKMBUILD
}

sha512sums="
f48493a21883e441cda705fb085353bed033f1620a1d0f93069c345c76cf2c0759a2e6f7a80c47c9398e9878abfe1d90d931fe5ceaf2588770a71491a434631e  zfs-2.1.12.tar.gz
5937c01f196d18fe63923da9199651d0ede6a8c8179bf55a2d066978cfcc9440f819987b39d25314631633a4b7a7e3c47d2d51c1138970d30f0c8239828b9a39  AKMBUILD
"
